package com.ctsi.ssdc.utils;

public class MathUtil{

    public static long round(Double num) {
        return Math.round(num);
    }

    public static double round(Double num,int index) {
        if (index<1) return Math.round(num);
        double pow = Math.pow(10, index);
        return Math.round(num * pow) / pow;
    }

}
